package Classroom.A0510.extendsPra;

public class Programmer extends Peo {

    double salary;

    void work() {
        System.out.println("为了月薪2万" + name + "该加班了!!!!!!");
    }

    public static void main(String[] args) {
        Programmer programmer = new Programmer();
        programmer.name = "张三";
        programmer.age = 28;
        programmer.sex = "男";
        programmer.salary = 10000.0;
        programmer.eat();
        programmer.work();
    }
}
